﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="trangchitiet.aspx.cs" Inherits="trangchitiet" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p>
        <br />
        <asp:ListView ID="ListView1" runat="server" DataKeyNames="masach" DataSourceID="SqlDataSource1" GroupItemCount="3">
            <AlternatingItemTemplate>
                <td runat="server" style="background-color: #FFF8DC;">masach:
                    <asp:Label ID="masachLabel" runat="server" Text='<%# Eval("masach") %>' />
                    <br />ten:
                    <asp:Label ID="tenLabel" runat="server" Text='<%# Eval("ten") %>' />
                    <br />mota:
                    <asp:Label ID="motaLabel" runat="server" Text='<%# Eval("mota") %>' />
                    <br />gia:
                    <asp:Label ID="giaLabel" runat="server" Text='<%# Eval("gia") %>' />
                    <br />image:
                    <asp:Label ID="imageLabel" runat="server" Text='<%# Eval("image") %>' />
                    <br />manxb:
                    <asp:Label ID="manxbLabel" runat="server" Text='<%# Eval("manxb") %>' />
                    <br />matg:
                    <asp:Label ID="matgLabel" runat="server" Text='<%# Eval("matg") %>' />
                    <br />maloai:
                    <asp:Label ID="maloaiLabel" runat="server" Text='<%# Eval("maloai") %>' />
                    <br /></td>
            </AlternatingItemTemplate>
            <EditItemTemplate>
                <td runat="server" style="background-color: #008A8C; color: #FFFFFF;">masach:
                    <asp:Label ID="masachLabel1" runat="server" Text='<%# Eval("masach") %>' />
                    <br />ten:
                    <asp:TextBox ID="tenTextBox" runat="server" Text='<%# Bind("ten") %>' />
                    <br />mota:
                    <asp:TextBox ID="motaTextBox" runat="server" Text='<%# Bind("mota") %>' />
                    <br />gia:
                    <asp:TextBox ID="giaTextBox" runat="server" Text='<%# Bind("gia") %>' />
                    <br />image:
                    <asp:TextBox ID="imageTextBox" runat="server" Text='<%# Bind("image") %>' />
                    <br />manxb:
                    <asp:TextBox ID="manxbTextBox" runat="server" Text='<%# Bind("manxb") %>' />
                    <br />matg:
                    <asp:TextBox ID="matgTextBox" runat="server" Text='<%# Bind("matg") %>' />
                    <br />maloai:
                    <asp:TextBox ID="maloaiTextBox" runat="server" Text='<%# Bind("maloai") %>' />
                    <br />
                    <asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="Update" />
                    <br />
                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Cancel" />
                    <br /></td>
            </EditItemTemplate>
            <EmptyDataTemplate>
                <table runat="server" style="background-color: #FFFFFF; border-collapse: collapse; border-color: #999999; border-style: none; border-width: 1px;">
                    <tr>
                        <td>No data was returned.</td>
                    </tr>
                </table>
            </EmptyDataTemplate>
            <EmptyItemTemplate>
<td runat="server" />
            </EmptyItemTemplate>
            <GroupTemplate>
                <tr id="itemPlaceholderContainer" runat="server">
                    <td id="itemPlaceholder" runat="server"></td>
                </tr>
            </GroupTemplate>
            <InsertItemTemplate>
                <td runat="server" style="">masach:
                    <asp:TextBox ID="masachTextBox" runat="server" Text='<%# Bind("masach") %>' />
                    <br />ten:
                    <asp:TextBox ID="tenTextBox" runat="server" Text='<%# Bind("ten") %>' />
                    <br />mota:
                    <asp:TextBox ID="motaTextBox" runat="server" Text='<%# Bind("mota") %>' />
                    <br />gia:
                    <asp:TextBox ID="giaTextBox" runat="server" Text='<%# Bind("gia") %>' />
                    <br />image:
                    <asp:TextBox ID="imageTextBox" runat="server" Text='<%# Bind("image") %>' />
                    <br />manxb:
                    <asp:TextBox ID="manxbTextBox" runat="server" Text='<%# Bind("manxb") %>' />
                    <br />matg:
                    <asp:TextBox ID="matgTextBox" runat="server" Text='<%# Bind("matg") %>' />
                    <br />maloai:
                    <asp:TextBox ID="maloaiTextBox" runat="server" Text='<%# Bind("maloai") %>' />
                    <br />
                    <asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert" />
                    <br />
                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Clear" />
                    <br /></td>
            </InsertItemTemplate>
            <ItemTemplate>
                <td runat="server" style="background-color: #DCDCDC; color: #000000;">
                    <asp:Image ID="Image1" runat="server" Height="314px" ImageUrl='<%# Eval("image", "images/{0}") %>' Width="224px" />
                    <br />
                    masach:
                    <asp:Label ID="masachLabel" runat="server" Text='<%# Eval("masach", "{0}") %>' />
                    <br />ten:
                    <asp:Label ID="tenLabel" runat="server" Text='<%# Eval("ten") %>' />
                    <br />mota:
                    <asp:Label ID="motaLabel" runat="server" Text='<%# Eval("mota") %>' />
                    <br />gia:
                    <asp:Label ID="giaLabel" runat="server" Text='<%# Eval("gia") %>' />
                    <br />
                    manxb:
                    <asp:Label ID="manxbLabel" runat="server" Text='<%# Eval("manxb") %>' />
                    <br />matg:
                    <asp:Label ID="matgLabel" runat="server" Text='<%# Eval("matg") %>' />
                    <br />maloai:
                    <asp:Label ID="maloaiLabel" runat="server" Text='<%# Eval("maloai") %>' />
                    <br /></td>
            </ItemTemplate>
            <LayoutTemplate>
                <table runat="server">
                    <tr runat="server">
                        <td runat="server">
                            <table id="groupPlaceholderContainer" runat="server" border="1" style="background-color: #FFFFFF; border-collapse: collapse; border-color: #999999; border-style: none; border-width: 1px; font-family: Verdana, Arial, Helvetica, sans-serif;">
                                <tr id="groupPlaceholder" runat="server">
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr runat="server">
                        <td runat="server" style="text-align: center; background-color: #CCCCCC; font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000;"></td>
                    </tr>
                </table>
            </LayoutTemplate>
            <SelectedItemTemplate>
                <td runat="server" style="background-color: #008A8C; font-weight: bold; color: #FFFFFF;">masach:
                    <asp:Label ID="masachLabel" runat="server" Text='<%# Eval("masach") %>' />
                    <br />ten:
                    <asp:Label ID="tenLabel" runat="server" Text='<%# Eval("ten") %>' />
                    <br />mota:
                    <asp:Label ID="motaLabel" runat="server" Text='<%# Eval("mota") %>' />
                    <br />gia:
                    <asp:Label ID="giaLabel" runat="server" Text='<%# Eval("gia") %>' />
                    <br />image:
                    <asp:Label ID="imageLabel" runat="server" Text='<%# Eval("image") %>' />
                    <br />manxb:
                    <asp:Label ID="manxbLabel" runat="server" Text='<%# Eval("manxb") %>' />
                    <br />matg:
                    <asp:Label ID="matgLabel" runat="server" Text='<%# Eval("matg") %>' />
                    <br />maloai:
                    <asp:Label ID="maloaiLabel" runat="server" Text='<%# Eval("maloai") %>' />
                    <br /></td>
            </SelectedItemTemplate>
        </asp:ListView>
    </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Sach_webConnectionString %>" SelectCommand="SELECT * FROM [Sach] WHERE ([masach] = @masach)">
            <SelectParameters>
                <asp:QueryStringParameter Name="masach" QueryStringField="masach" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
</asp:Content>

